-- GENERATED SPELL FOR [Druid of the Talon] --


function spell0_3794(pUnit, Event) --@Faerie Fire,n/a--
pUnit:FullCastSpellOnTarget(25602,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3794', 22000, 1)
end

function spell1_3794(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(31784,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3794', 2000, 1)
end

function Sorts_3794(pUnit, Event)
local choix_sorts_3794 = math.random(0, 1)
if choix_sorts_3794 == 0 then
pUnit:RegisterEvent('spell0_3794', 1, 1)
end
if choix_sorts_3794 == 1 then
pUnit:RegisterEvent('spell1_3794', 1, 1)
end
end

function mob3794_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3794', math.random(1500, 3000), 1)
end

function mob3794_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3794_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3794_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3794, 1, 'mob3794_Action')
RegisterUnitEvent(3794, 2, 'mob3794_Leave')
RegisterUnitEvent(3794, 3, 'mob3794_Kill')
RegisterUnitEvent(3794, 4, 'mob3794_Die')
